package service.impl;

import java.util.List;

import dao.OrderDao;
import dao.impl.OrderDaoImpl;
import pojo.Order;
import service.OrderManager;

public class OrderManagerImpl implements OrderManager {
	private OrderDao orderDao;
	
	public OrderManagerImpl(){
		orderDao=new OrderDaoImpl();
	}

	@Override
	public int addOrder(Order order) {
		int m=orderDao.addOrder(order);
		if(m==1){
			return 1;
		}else{
			return 0;
		}
	}

	@Override
	public int deleteOrder(String id) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int updateOrder(Order order) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Order getOrder(String id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Order> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

}
